package com.example.feigner;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 * @author cxx
 * @create 2020-01-18 1:39
 **/
@RestController
@RequestMapping("/")
public class HelloController {

    @Autowired
    @ILoadBalanced
    private RestTemplate restTemplate;

    @RequestMapping("/h")
    public String h(){
        System.out.println (restTemplate);
        return "h";
    }

}
